import axiosServer from '../utils/request'
//发布新闻
//上传攻略
export const blogAdd = (id, arttitle, articleauthor, nick, contents, uptime, classnumber, articleclass) => {
  return axiosServer({
    method: 'post',
    url: '/api/art/uparticle',
    data: {
      id,
      articleauthor,
      nick,
      contents,
      uptime,
      articleclass,
      classnumber,
      arttitle,

    }
  })
}
//获取文章列表
export const blogList = (classnumber) => {
  return axiosServer({
    method: 'get',
    url: '/api/art/article/list',
    params: { classnumber },
  })
}
//删除公告
export const blogDelete = (_id) => {
  return axiosServer({
    method: 'get',
    url: '/api/art/article/delete',
    params: { _id },
  })
}
//修改公告
export const ContentModify = (_id, arttitle, contents) => {
  return axiosServer({
    method: 'post',
    url: '/api/art/article/modify',
    data: { _id, arttitle, contents },
  })
}


